<?php

class Model_ShopCart extends PhalApi_Model_NotORM
{

    public function getAll($cookieUserId,$order_sn)
    {
        return $this->getORM()
            ->select('*')
            ->where(array('userid = ?', 'order_sn = ?', 'iddel != ?'), $cookieUserId, $order_sn, "-1")
            ->fetchAll();
    }

    public function add($data){
        return $this->getORM()->insert($data);
    }

    public function getWithCache()
    {

    }

    protected function getTableName($id)
    {
        return 'jh_shop_cart';
    }
}
